<%@ page language="java" contentType="text/html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Login Page</title>
<link rel="stylesheet" href="css/styles.css" type="text/css" />
<style>
.error {
color: #ff0000;
font-style: italic;
}
</style>
</head>
<body>
<div id="container" >
	<div id="header">
    	<h1><a>Learning Management System</a></h1>
	</div>
	<div style="height: 350px;">
		<form:form method="POST" action="userFormAction.htm" commandName="user">
		<div class="login" style="height:20px">
			<fieldset>
			<table>
				<tr>
					<th> User Name : </th>
					<td> <form:input path="name" /> </td>
				</tr>
				<tr><form:errors path="name" cssClass="error" /></tr>
				<tr>
					<th> Password : </th>
					<td> <form:password path="password" /> </td>
				</tr>
				<tr><form:errors path="password" cssClass="error" /></tr>
			</table>
			<div style="text-align: center">
					<input type="submit" value="Login">
			</div>
			</fieldset>
		</div>	
		</form:form>
		</div>
		<div id="footer">
			<jsp:include page="/jsp/footer.jsp" />
		</div>
	</div>
</body>
</html>
